home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Graphics Plus
/
Graphics Plus.iso
/
general
/
viewers
/
polyview
/
polyvw31.lha
/
Polyview3.1
/
new
/
pvproto.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-24
|
30KB
|
568 lines
/* THIS FILE IS AUTOMATICALLY GENERATED by mkproto. */
/* pvmain.c */
void exit_polyview (void);
void coredump_polyview (void);
/* THIS FILE IS AUTOMATICALLY GENERATED by mkproto. */
/* pvdraw.c */
void init_zbuffer (void);
void grok_squeezed_zbuffer (state_t *state, window_t *win);
void set_squeezed_zbuffer (void);
int redraw_windows(state_t *state);
int set_redraw(state_t *state, window_t *win);
void SetOpacity(float alpha);
void DrawJack(float (*p)[DIMS], float off);
int draw_grid (state_t *state, window_t *win, object_t *obj, objinfo_t *info,
int plane);
int draw_scatter (state_t *state, window_t *win, object_t *obj, int (*fn)(),
objinfo_t *info, int plane);
int draw_axis (state_t *state, window_t *win, float start[DIMS],
float end[DIMS], int axis);
int draw_axes (state_t *state, window_t *win, object_t *obj, objinfo_t *info,
int style);
int draw_box_style (state_t *state, window_t *win, stats_t *stats, long style);
int draw_box (state_t *state, window_t *win, object_t *obj, objinfo_t *info);
int draw_obj_recurs (state_t *state, window_t *win, object_t *obj,
objinfo_t *info);
int update_info(state_t *state, objinfo_t *oldinfo, objinfo_t *updinfo,
objinfo_t *newinfo);
int draw_nothing (state_t *state, window_t *win, object_t *obj,
objinfo_t *info);
int draw_vertices(state_t *state, window_t *win, object_t *obj,
objinfo_t *info);
int draw_edges (state_t *state, window_t *win, object_t *obj, objinfo_t *info);
int DrawTrans (state_t *state, window_t *win, object_t *obj, objinfo_t *info);
int draw_faces (state_t *state, window_t *win, object_t *obj, objinfo_t *info);
int draw_outlined_faces(state_t *state, window_t *win, object_t *obj,
objinfo_t *info);
int draw_hidden_edges(state_t *state, window_t *win, object_t *obj,
objinfo_t *info);
int DrawPickedVertices(state_t *state, window_t *win, object_t *obj,
objinfo_t *info);
int DrawPickedFaces (state_t *state, window_t *win, object_t *obj,
objinfo_t *info);
/* THIS FILE IS AUTOMATICALLY GENERATED by mkproto. */
/* pvdata.c */
int init_data (state_t *state);
window_t *create_window(state_t *state, char *name);
window_t *init_window (state_t *state, window_t *win, int reset);
window_t *add_window (state_t *state, char *name, int type,
int (*init_fn)(), int (*redraw_fn)(),
int (*animate_fn)(),
int (*event_fn)(), int (*notify_fn)(),
int (*destroy_fn)());
window_t *get_window (state_t *state, window_t *win);
window_t *find_window_by_id (state_t *state, long id);
window_t *find_window_by_name (state_t *state, char *name, int type);
int delete_window(state_t *state, window_t *win);
frame_t *create_frame(state_t *state, window_t *win, char *name);
int build_matching_frames(state_t *state, window_t *win, char *path,
char *location, Vgroup_t *group);
frame_t *add_frame(state_t *state, window_t *win, char *name);
int build_frames(state_t *state, window_t *win, Vgroup_t *group);
int build_frames_r (state_t *state, window_t *win, object_t *object,
Vgroup_t *group);
int fill_in_frame (state_t *state, window_t *win, frame_t *source,
frame_t *dest);
int fill_in_objects(state_t *state, window_t *win, object_t *source,
object_t *dest);
int fill_in_vdatas(state_t *state, object_t *source, object_t *dest,
int low, int high);
float *merge_triple(int num, float *px, float *py, float *pz);
char *get_data(state_t *state, Vdata_t *vdata);
int consistent_data(state_t *state, window_t *win, object_t *obj);
int derive_data (state_t *state, window_t *win, object_t *prev, object_t *obj);
frame_t *get_next_frame(state_t *state, frame_t *frame);
frame_t *get_prev_frame(state_t *state, frame_t *frame);
frame_t *get_first_frame(state_t *state, window_t *win);
frame_t *find_frame_by_name(state_t *state, window_t *win, char *name);
frame_t *find_frame_by_num(state_t *state, window_t *win, int num);
int find_frame_num(state_t *state, window_t *win, frame_t *frame);
frame_t *delete_frame(state_t *state, window_t *win, frame_t *frame);
object_t *create_object(state_t *state, int type);
object_t *add_object(state_t *state, frame_t *frame, object_t *parent,
object_t *object, int type);
int set_object_data(state_t *state, object_t *object, int vdata_slot,
Vdata_t *vdata);
long ApplyFuncToTree(state_t *state, object_t *tree, long (*fn)(), ...);
long ApplyFuncToTree_r(state_t *state, object_t *object, long (*fn)(),
va_list args);
int delete_object(state_t *state, object_t *object, int recursion);
objinfo_t *create_objinfo(state_t *state);
objinfo_t *add_objinfo(state_t *state, object_t *object, objinfo_t *info);
int delete_objinfo(state_t *state, objinfo_t *info);
palette_t *create_palette (state_t *state);
palette_t *add_palette (state_t *state, window_t *win, palette_t *palette);
/* THIS FILE IS AUTOMATICALLY GENERATED by mkproto. */
/* pvpick.c */
int PickRegion (state_t *state, window_t *win, short left, short bottom,
short right, short top, int toggle, int interactive);
void PickNo (state_t *state, window_t *win);
void PickAll (state_t *state, window_t *win);
int PickPolyview (state_t *state, window_t *win, pickmode_t mode,
long left, long right, long bottom, long top, int toggle);
int PickObjRecurs (state_t *state, window_t *win, object_t *obj,
objinfo_t *info, pickmode_t mode, int toggle,
long *first_id);
char *CreatePickVdata (state_t *state, object_t *obj);
long ProcessSelections (short *buffer, long count, char *picked, int toggle);
long PickVertices (state_t *state, window_t *win, object_t *obj,
objinfo_t *info, int toggle);
long PickEdges (state_t *state, window_t *win, object_t *obj, objinfo_t *info,
int toggle);
long PickFaces (state_t *state, window_t *win, object_t *obj, objinfo_t *info,
int toggle);
long PickObject (state_t *state, window_t *win, object_t *obj,
objinfo_t *info, int toggle);
/* THIS FILE IS AUTOMATICALLY GENERATED by mkproto. */
/* pvvset.c */
Vdata_t *create_vdata(state_t *state, int id, char *name, files_t *source);
files_t *set_file_dtm_explicit (state_t *state, char *path);
Vdata_t *find_vdata(state_t *state, Vgroup_t *vg, char *vdataname);
Vgroup_t *GetVgroupInVgroup(state_t *state, Vgroup_t *group, char *name);
Vgroup_t *set_vgroup(state_t *state, files_t *file, char *grouppath);
int build_vgroup_children(state_t *state, Vgroup_t *current);
Vgroup_t *add_vgroup(state_t *state, int id, char *name, Vgroup_t *parent);
Vdata_t *add_vdata(state_t *state, int id, char *name, Vgroup_t *parent);
Vdata_t *get_vdata(state_t *state, Vdata_t *vdata);
Vdata_t *get_vdata_in_vgroup(state_t *state, Vgroup_t *group, char *name);
files_t *find_file (state_t *state, int type, char *fullpath);
Vgroup_t *find_vgroup(state_t *state, files_t *file, char *fullpath);
int swap_in(state_t *state, Vdata_t *vdata);
int calc_stats(state_t *state, Vdata_t *vdata);
int combine_stats(state_t *state, stats_t updstat[MAXDATADIMS][MAXVDATAS],
stats_t newstat[MAXDATADIMS][MAXVDATAS]);
int dump_files(state_t *state);
/* THIS FILE IS AUTOMATICALLY GENERATED by mkproto. */
/* pvevent.c */
int init_events(state_t *state);
int make_window_active (state_t *state, window_t *win);
int process_events (state_t *state);
int process_next_command (state_t *state);
int animate_windows(state_t *state);
/* THIS FILE IS AUTOMATICALLY GENERATED by mkproto. */
/* pvfuncs.c */
int abort_actions(state_t *state);
int animate_reverse(state_t *state, window_t *win, int framecount);
int animate_forward(state_t *state, window_t *win, int framecount);
int timeblock_forward (state_t *state, window_t *win,
action_t *action, int framecount);
int timeblock_reverse (state_t *state, window_t *win,
action_t *action, int framecount);
int do_nothing (state_t *state, action_t *action, window_t *win);
int pause (state_t *state, window_t *win, action_t *action,
int count);
int animate_goto(state_t *state, window_t *win, char *framename);
int animate_goto_num(state_t *state, window_t *win, int number);
int animate_stop(state_t *state, window_t *win);
int time_delay(state_t *state, window_t *win, int delay);
int time_skip(state_t *state, window_t *win, int skip);
int animate_reset(state_t *state, window_t *win);
int cm_load_hdf(state_t *state, window_t *win, char *colormappath);
int cm_load_raw(state_t *state, window_t *win, char *colormappath);
int cm_put_hdf(state_t *state, window_t *win, char *palettepath);
int cm_put_raw(state_t *state, window_t *win, char *palettepath);
int cm_reset(state_t *state, window_t *win);
int cm_scale(state_t *state, window_t *win, float scalestep, int single);
int cm_shift(state_t *state, window_t *win, float shiftstep, int single);
int cm_load(state_t *state, window_t *win, int colormap);
int dump_rgb(state_t *state, window_t *win, char *fname);
int help(state_t *state, window_t *win);
int script(state_t *state, window_t *win, char *filename);
int set_camera_pos(state_t *state, window_t *win, float x, float y,
float z);
int set_ref_pos(state_t *state, window_t *win, float x, float y, float z);
int interp_twist (Angle twist1, Angle twist2,
int steps, int step,
Angle *twistp);
int interp_pos(float x1, float y1, float z1, float x2, float y2, float z2,
int steps, int step, int pathtype, float *xp, float *yp,
float *zp);
int move_camera(state_t *state, window_t *win, action_t *action, int pathtype,
float to_0, float to_1, float to_2, Angle twist);
int move_ref_pt(state_t *state, window_t *win, action_t *action, float to_0,
float to_1, float to_2);
float *SelectedCentroid(state_t *state, window_t *win);
int move_ref_sel(state_t *state, window_t *win, action_t *action);
int move_path(state_t *state, window_t *win, int movepath);
int move_step(state_t *state, window_t *win, float step);
int jump_camera(state_t *state, window_t *win, int steps,
float to_0, float to_1, float to_2, Angle twist);
int jump_ref_pt(state_t *state, window_t *win, int steps,
float to_0, float to_1, float to_2);
int jump_ref_sel(state_t *state, window_t *win);
int set_overlay(state_t *state, window_t *win, int type, int style,
int hereonly);
int set_over_shadow_vertices(state_t *state, window_t *win);
int set_over_shadow_lines(state_t *state, window_t *win);
int set_over_shadow_solid(state_t *state, window_t *win);
int project_ortho(state_t *state, window_t *win);
int project_perspective(state_t *state, window_t *win);
int quit(state_t *state);
int set_draw_nothing(state_t *state, window_t *win);
int set_draw_vertices(state_t *state, window_t *win);
int set_draw_lines(state_t *state, window_t *win);
int set_draw_hidden_edges(state_t *state, window_t *win);
int set_draw_transparent(state_t *state, window_t *win);
int set_draw_solid(state_t *state, window_t *win);
int set_draw_outlined(state_t *state, window_t *win);
int set_draw_fast(state_t *state, window_t *win, int (*fast_fn)());
int reset(state_t *state, window_t *win);
int data_clear(state_t *state, window_t *win);
int data_file(state_t *state, window_t *win, char *filename);
int data_dtm(state_t *state, window_t *win, char *filename);
int data_dtm_explicit (state_t *state, window_t *win, char *filename);
int data_frame(state_t *state, window_t *win, char *framename);
int set_data_name(state_t *state, action_t *action, window_t *win, int slot,
char *defname);
int data_load(state_t *state, window_t *win, int mode);
int data_scale (state_t *state, window_t *win, float xscale, float yscale,
float zscale);
int data_normalize(state_t *state, window_t *win);
int sel_all(state_t *state, window_t *win);
int sel(state_t *state, window_t *win, pickmode_t mode);
int sel_region(state_t *state, window_t *win, short left, short right,
short bottom, short top, int toggle);
int win_geometry(state_t *state, long left, long bottom, long right, long top);
int win_geometry_auto(state_t *state, int mode);
int win_open_palette(state_t *state);
int win_activate(state_t *state, window_t *win);
int win_close_current(state_t *state);
int win_close_palette(state_t *state);
int win_close_time(state_t *state);
int win_close_info(state_t *state, window_t *win, char *name);
int win_close_polyview(state_t *state, window_t *win, char *name);
/* THIS FILE IS AUTOMATICALLY GENERATED by mkproto. */
/* pvutil.c */
int bprintf(state_t * state, char * format, ...);
int gprintf(state_t * state, int x, int y, int attr, char * format, ...);
int stprintf(state_t * state, char * format, ...);
char *strsub(char *dest, char *source, char *old, char *new);
char *substitute(char *dest, char *source, char *pattern, char *format, ...);
int strwcmp(char *wildstr, char *str);
float facos2(float x, float r);
float fasin2(float y, float r);
void cart_to_sphere(float x, float y, float z, float *rho,
float *theta, float *phi);
void sphere_to_cart(float rho, float theta, float phi, float *x, float *y,
float *z);
float *p3f (float x, float y, float z);
void p2i(long x, long y);
void p2f(float x, float y);
/* THIS FILE IS AUTOMATICALLY GENERATED by mkproto. */
/* pvparse.c */
char *get_keyword_arg(int argc, arg_t arg[], int keynum);
char * get_string_arg(int argc, arg_t arg[], char *name, char *def);
float get_float_arg(int argc, arg_t arg[], char *name, float def);
int load_script (state_t *state, FILE *fp);
int parse_line (state_t *state, char *line, int immediate);
int AddArg (int *argc, arg_t *arg, char *term_format, char *term);
/* THIS FILE IS AUTOMATICALLY GENERATED by mkproto. */
/* pvaction.c */
action_t *new_action (state_t *state, int (*action_fn)(), int argc,
arg_t arg[MAXACTIONARGS], int steps);
action_t *add_action (state_t *state, int (*action_fn)(), int argc,
arg_t arg[MAXACTIONARGS],
int steps, int global, int at_current);
action_t *next_ser_action (state_t *state, action_t *current);
int free_action (state_t *state, action_t *action);
int do_action (state_t *state, action_t *action);
/* THIS FILE IS AUTOMATICALLY GENERATED by mkproto. */
/* pvpoly.c */
void init_patterns (void);
int init_polyview(state_t *state, window_t *win, int reset);
int redraw_polyview(state_t *state, window_t *win);
int draw_legend (state_t *state, window_t *win);
int draw_credits (state_t *state, window_t *win);
int animate_polyview(state_t *state, window_t *win);
int event_polyview(state_t *state, window_t *win, long dev_id, short data);
int notify_polyview(state_t *state, window_t *send_win, window_t *recv_win,
int message, va_list args);
int destroy_polyview(state_t *state, window_t *win);
polyview_t *add_poly (state_t *state, window_t *win);
void GUIpviewResetRender (state_t *state, window_t *win);
void GUIpviewResetProps (state_t *state, window_t *win);
void GUIpviewResetOutline (state_t *state, window_t *win);
void GUIpviewResetLinewidth (state_t *state, window_t *win);
void GUIpviewResetSelect (state_t *state, window_t *win);
XmxCallbackPrototype (GUIloadVsetCallback);
GUIloadVsetBox *GUIcreateLoadVsetBox (state_t *state, window_t *win);
GUIoutlineBox *GUIcreateOutlineBox (state_t *state, window_t *win);
GUIlinewidthBox *GUIcreateLinewidthBox (state_t *state, window_t *win);
void GUIpviewResetSphere (state_t *state, window_t *win);
GUIsphereBox *GUIcreateSphereBox (state_t *state, window_t *win);
XmxCallbackPrototype (GUIpolyviewMenubarCB);
XmxCallbackPrototype (GUIpolyviewWindowCB);
void remote_movecursor (state_t *state, window_t *win, float fx, float fy);
void remote_movecursorend (state_t *state, window_t *win);
XmxCallbackPrototype (GUIpviewRedrawCB);
XmxCallbackPrototype (GUIpviewGinitCB);
XmxCallbackPrototype (GUIpviewResizeCB);
int win_open_polyview(state_t *state, window_t *win, char *name);
/* THIS FILE IS AUTOMATICALLY GENERATED by mkproto. */
/* pvstatus.c */
XmxCallbackPrototype (GUItimeoutOne);
XmxCallbackPrototype (GUItimeoutTwo);
void GUIaddCommand (char *command_str);
void GUIsetStatus (char *str);
XmxCallbackPrototype (GUIcommandCB);
XmxCallbackPrototype (GUIexitConfirmationCB);
XmxCallbackPrototype (GUIscriptFSBCallback);
XmxCallbackPrototype (GUImainMenubarCB);
int post_status(state_t *state);
/* THIS FILE IS AUTOMATICALLY GENERATED by mkproto. */
/* pvpal.c */
int init_palette(state_t *state, window_t *win, int reset);
int redraw_palette(state_t *state, window_t *win);
int animate_palette(state_t *state, window_t *win);
void GUIpaletteResetBackdrop (state_t *state, window_t *win);
void GUIpaletteResetPresets (state_t *state);
int event_palette(state_t *state, window_t *win, long dev_id, short data);
int notify_palette(state_t * state, window_t * send_win, window_t * recv_win,
int message, va_list args);
int destroy_palette(state_t *state, window_t *win);
unsigned long WidgetBackgroundToGlRgb(Widget widget);
XmxCallbackPrototype (GUIpalRedrawCB);
XmxCallbackPrototype (GUIpalGinitCB);
XmxCallbackPrototype (GUIpalResizeCB);
XmxCallbackPrototype (GUIpaletteFSBCallback);
XmxCallbackPrototype (GUIpaletteMenubarCB);
int post_palette(state_t *state);
int set_palette(state_t *state, palette_t *palette, int type);
/* THIS FILE IS AUTOMATICALLY GENERATED by mkproto. */
/* pvtext.c */
int do_abort (state_t *state, action_t *action, window_t *win);
int do_animate (state_t *state, action_t *action, window_t *win);
int do_animate_reverse (state_t *state, action_t *action, window_t *win);
int do_time_reverse_step (state_t *state, action_t *action, window_t *win);
int do_time_forward_step (state_t *state, action_t *action, window_t *win);
int do_animate_forward (state_t *state, action_t *action, window_t *win);
int do_animate_goto (state_t *state, action_t *action, window_t *win);
int do_animate_goto_num (state_t *state, action_t *action, window_t *win);
int do_animate_stop (state_t *state, action_t *action, window_t *win);
int do_time_delay (state_t *state, action_t *action, window_t *win);
int do_time_skip (state_t *state, action_t *action, window_t *win);
int do_animate_reset (state_t *state, action_t *action, window_t *win);
int do_time_bounce (state_t *state, action_t *action, window_t *win);
int do_timeblock_forward (state_t *state, action_t *action, window_t *win);
int do_timeblock_reverse (state_t *state, action_t *action, window_t *win);
int do_pause (state_t *state, action_t *action, window_t *win);
int do_cm_load_hdf (state_t *state, action_t *action, window_t *win);
int do_cm_load_raw (state_t *state, action_t *action, window_t *win);
int do_cm_put_hdf (state_t *state, action_t *action, window_t *win);
int do_cm_put_raw (state_t *state, action_t *action, window_t *win);
int do_cm_reset (state_t *state, action_t *action, window_t *win);
int do_cm_scale (state_t *state, action_t *action, window_t *win);
int do_cm_shift (state_t *state, action_t *action, window_t *win);
int do_cm_fiddle (state_t *state, action_t *action, window_t *win);
int do_cm_load (state_t *state, action_t *action, window_t *win);
int do_do (state_t *state, action_t *action, window_t *win);
int do_script (state_t *state, action_t *action, window_t *win);
int do_dump (state_t *state, action_t *action, window_t *win);
int do_movecursor (state_t *state, action_t *action, window_t *win);
int do_movecursorend (state_t *state, action_t *action, window_t *win);
int setup_move_camera (state_t *state, action_t *action, window_t *win);
int setup_move_ref_pt (state_t *state, action_t *action, window_t *win);
int setup_move_ref_sel (state_t *state, action_t *action, window_t *win);
int do_move_path (state_t *state, action_t *action, window_t *win);
int do_move_step (state_t *state, action_t *action, window_t *win);
int do_jump_camera (state_t *state, action_t *action, window_t *win);
int do_jump_ref_pt (state_t *state, action_t *action, window_t *win);
int do_jump_ref_sel (state_t *state, action_t *action, window_t *win);
int do_overlay_axes (state_t *state, action_t *action, window_t *win);
int do_overlay_box (state_t *state, action_t *action, window_t *win);
int do_overlay_focus (state_t *state, action_t *action, window_t *win);
int do_overlay_grid (state_t *state, action_t *action, window_t *win);
int do_overlay_shadow (state_t *state, action_t *action, window_t *win);
int do_legend (state_t *state, action_t *action, window_t *win);
int do_credits (state_t *state, action_t *action, window_t *win);
int do_overlay_all_off (state_t *state, action_t *action, window_t *win);
int do_project_ortho (state_t *state, action_t *action, window_t *win);
int do_shade_flat (state_t *state, action_t *action, window_t *win);
int do_shade_gouraud (state_t *state, action_t *action, window_t *win);
int do_project_perspective (state_t *state, action_t *action, window_t *win);
int do_quit (state_t *state, action_t *action, window_t *win);
int do_draw_nothing (state_t *state, action_t *action, window_t *win);
int do_draw_vertices (state_t *state, action_t *action, window_t *win);
int do_draw_lines (state_t *state, action_t *action, window_t *win);
int do_draw_hidden_edges (state_t *state, action_t *action, window_t *win);
int do_draw_transparent (state_t *state, action_t *action, window_t *win);
int do_draw_solid (state_t *state, action_t *action, window_t *win);
int do_draw_outlined (state_t *state, action_t *action, window_t *win);
int do_draw_outlined_white (state_t *state, action_t *action, window_t *win);
int do_draw_outlined_black (state_t *state, action_t *action, window_t *win);
int do_draw_outlined_color (state_t *state, action_t *action, window_t *win);
int do_draw_linewidth (state_t *state, action_t *action, window_t *win);
int do_sphere_size (state_t *state, action_t *action, window_t *win);
int do_sphere_depth (state_t *state, action_t *action, window_t *win);
int do_backdrop (state_t *state, action_t *action, window_t *win);
int do_light_one (state_t *state, action_t *action, window_t *win);
int do_light_two (state_t *state, action_t *action, window_t *win);
int do_light_three (state_t *state, action_t *action, window_t *win);
int do_light_x (state_t *state, action_t *action, window_t *win);
int do_light_y (state_t *state, action_t *action, window_t *win);
int do_light_z(state_t *state, action_t *action, window_t *win);
int do_light_twoside_on (state_t *state, action_t *action, window_t *win);
int do_light_twoside_off (state_t *state, action_t *action, window_t *win);
int do_light_off(state_t *state, action_t *action, window_t *win);
int do_drag(state_t *state, action_t *action, window_t *win);
int do_reset(state_t *state, action_t *action, window_t *win);
int do_data_clear(state_t *state, action_t *action, window_t *win);
int do_data_file(state_t *state, action_t *action, window_t *win);
int do_data_dtm(state_t *state, action_t *action, window_t *win);
int do_dtm_out (state_t *state, action_t *action, window_t *win);
int do_dtm_in (state_t *state, action_t *action, window_t *win);
int do_dtm_send (state_t *state, action_t *action, window_t *win);
int do_data_frame(state_t *state, action_t *action, window_t *win);
int do_data_connect(state_t *state, action_t *action, window_t *win);
int do_data_px(state_t *state, action_t *action, window_t *win);
int do_data_py(state_t *state, action_t *action, window_t *win);
int do_data_pz(state_t *state, action_t *action, window_t *win);
int do_data_coord(state_t *state, action_t *action, window_t *win);
int do_data_minmax(state_t *state, action_t *action, window_t *win);
int do_data_vscalar(state_t *state, action_t *action, window_t *win);
int do_data_load(state_t *state, action_t *action, window_t *win);
int do_data_scale(state_t *state, action_t *action, window_t *win);
int do_data_normalize(state_t *state, action_t *action, window_t *win);
int do_help(state_t *state, action_t *action, window_t *win);
int do_about (state_t *state, action_t *action, window_t *win);
int do_sel_all(state_t *state, action_t *action, window_t *win);
int do_sel(state_t *state, action_t *action, window_t *win);
int do_sel_area(state_t *state, action_t *action, window_t *win);
int do_win_geometry_auto(state_t *state, action_t *action, window_t *win);
int do_win_geometry(state_t *state, action_t *action, window_t *win);
int do_win_open_palette(state_t *state, action_t *action, window_t *win);
int do_win_open_info(state_t *state, action_t *action, window_t *win);
int do_win_open_polyview(state_t *state, action_t *action, window_t *win);
int do_win_activate (state_t *state, action_t *action, window_t *win);
int do_win_close_current (state_t *state, action_t *action, window_t *win);
int do_win_close_palette (state_t *state, action_t *action, window_t *win);
int do_win_close_time (state_t *state, action_t *action, window_t *win);
int do_win_close_info (state_t *state, action_t *action, window_t *win);
int do_win_close_polyview (state_t *state, action_t *action, window_t *win);
int do_save_mode (state_t *state, action_t *action, window_t *win);
int do_save_image (state_t *state, action_t *action, window_t *win);
int do_save_ray (state_t *state, action_t *action, window_t *win);
int do_save_rgb (state_t *state, action_t *action, window_t *win);
int do_save_renderman (state_t *state, action_t *action, window_t *win);
int do_save_stop (state_t *state, action_t *action, window_t *win);
int do_blast_mode (state_t *state, action_t *action, window_t *win);
int do_blast_image (state_t *state, action_t *action, window_t *win);
int do_blast_stop (state_t *state, action_t *action, window_t *win);
/* THIS FILE IS AUTOMATICALLY GENERATED by mkproto. */
/* pvmsg.c */
int broadcast_msg(state_t * state, window_t * send_win, int msg, ...);
int send_msg_to_id(state_t * state, window_t * send_win, int id, int msg, ...);
int send_msg_to_type(state_t * state, window_t * send_win, int type,
int msg, ...);
int send_msg_to_win(state_t * state, window_t * send_win, window_t * recv_win,
int msg, ...);
/* THIS FILE IS AUTOMATICALLY GENERATED by mkproto. */
/* pvdtm.c */
void COMsend_vset (state_t *state, Vgroup_t *vset);
void COMsend_com (state_t *state, char *command);
void COMdtm_in (state_t *state, char *path);
int COMdtm_out (state_t *state, window_t *win, char *port);
int COMdtm_out_active_p (state_t *state);
void COMpoll (state_t *state);
/* THIS FILE IS AUTOMATICALLY GENERATED by mkproto. */
/* pvtime.c */
int init_animate_fn(state_t *state, window_t *win, int reset);
int init_animate (state_t *state, window_t *active, window_t *palette,
int reset);
void *create_animate_dialog (state_t *state);
int notify_animate (state_t * state, window_t * send_win, window_t * recv_win,
int message, va_list args);
int destroy_animate (state_t *state, window_t *window);
/* THIS FILE IS AUTOMATICALLY GENERATED by mkproto. */
/* pvinfo.c */
int init_info_fn(state_t *state, window_t *win, int reset);
int init_info(state_t *state, window_t *active, window_t *palette, int reset);
char *GetVdataName(object_t *obj, int slot);
long GetKthPickedElement(object_t *obj, long k);
float GetVertexScalar(state_t *state, object_t *obj, long k);
float *GetVertexCoord(state_t *state, object_t *obj, long k);
int GetVertexColor(state_t *state, object_t *obj, long k);
float GetFaceScalar(state_t *state, object_t *obj, long k);
float *GetFaceCoord(state_t *state, object_t *obj, long k);
object_t *GetKthElementObj(object_t *root, int k);
void destroy_info (state_t *state, window_t *window);
void create_info_dialog(state_t *state);
int notify_info(state_t * state, window_t * send_win, window_t * recv_win,
int message, va_list args);
/* THIS FILE IS AUTOMATICALLY GENERATED by mkproto. */
/* pvraster.c */
int WriteRaster(state_t *state, window_t *win, char *outfile);
int WriteRasterOverDTM (state_t *state, window_t *win);
int ReadHDFPalette(state_t *state, window_t *win, char *infile);
int ReadRawPalette(state_t *state, window_t *win, char *infile);
int WriteHDFPalette(state_t *state, window_t *win, char *outfile);
int WriteRawPalette(state_t *state, window_t *win, char *outfile);
/* THIS FILE IS AUTOMATICALLY GENERATED by mkproto. */
/* pvlight.c */
void init_lighting (void);
void light_twoside_on (state_t *state, window_t *win);
void light_twoside_off (state_t *state, window_t *win);
void lighting_on (state_t *state, window_t *win, float x, float y, float z);
void lighting_off (void);
/* THIS FILE IS AUTOMATICALLY GENERATED by mkproto. */
/* pvhelp.c */
void GUIdoHelp (int help_token);
/* THIS FILE IS AUTOMATICALLY GENERATED by mkproto. */
/* pvray.c */
void dump_ray (state_t *state, window_t *win, char *fname);
/* THIS FILE IS AUTOMATICALLY GENERATED by mkproto. */
/* pvrender.c */
void dump_renderman (state_t *state, window_t *win, char *fname);
void dump_renderman (state_t *state, window_t *win, char *fname);
/* THIS FILE IS AUTOMATICALLY GENERATED by mkproto. */
/* misc.c */
void DumpRGB(Widget w, int width, int height, char *fname);